﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tauren.Business.Entity.Model
{

    /// <summary>
    /// 工作台
    /// </summary>
    [Dapper.Contrib.Extensions.Table("workbench")]
    public class WorkBench : EntityBase
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Dapper.Contrib.Extensions.Key]
        public virtual long AutoId { get; set; }

        /// <summary>
        /// 工作台类型
        /// </summary>
        public virtual int Type { get; set; }

        /// <summary>
        /// 对应模块
        /// </summary>
        public virtual string ModuleCode { get; set; }

        /// <summary>
        /// 对应编码
        /// </summary>
        public virtual string Code { get; set; }

        /// <summary>
        /// 员工ID
        /// </summary>
        public virtual int EmpId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public virtual double Sequence { get; set; }
    }
    public class Flow_WorkBench : WorkFlowInfo
    {
        /// <summary>
        /// 对应模块
        /// </summary>
        public virtual string ModuleCode { get; set; }

        /// <summary>
        /// 对应编码
        /// </summary>
        public virtual string Code { get; set; }

        /// <summary>
        /// 员工ID
        /// </summary>
        public virtual int EmpId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public virtual double Sequence { get; set; }
        /// <summary>
        /// 选中
        /// </summary>
        public virtual bool Selected { get; set; }
    }

    public class WorkFlowInfo
    {
        /// <summary>
        /// 流程版本id
        /// </summary>
        public virtual long FlowVersionId { get; set; }

        /// <summary>
        /// 流程id
        /// </summary>
        public virtual long FlowId { get; set; }

        /// <summary>
        /// 表单ID
        /// </summary>
        public virtual long FormId { get; set; }

        /// <summary>
        /// 流程表单版本ID
        /// </summary>
        public virtual long FormVersionId { get; set; }
        /// <summary>
        /// 英文名
        /// </summary>
        public virtual string CNName { get; set; }
        /// <summary>
        /// 中文名
        /// </summary>
        public virtual string ENName { get; set; }
        /// <summary>
        /// 流程图标
        /// </summary>
        public virtual string FlowIcon { get; set; } = "";

        /// <summary>
        /// 流程内联样式
        /// </summary>
        public virtual string FlowStyle { get; set; } = "";

        /// <summary>
        /// 提示信息
        /// </summary>
        public virtual string Placeholder { get; set; } = "";

        public virtual double Sequence { get; set; }
    }
}
